package com.xiaolin.oa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaolin.oa.model.entity.CommonProcessApprovalRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 流程审批记录表 Mapper 接口
 * </p>
 *
 * @author xiaolin
 * @since 2024-08-22
 */
public interface CommonProcessApprovalRecordMapper extends BaseMapper<CommonProcessApprovalRecord> {

    CommonProcessApprovalRecord getCurApprovalRecord(@Param("serialNumber") String serialNumber, @Param("processFlowId") Integer processFlowId);

    List<CommonProcessApprovalRecord> getApprovedRecord(@Param("serialNumber") String serialNumber, @Param("processFlowId") Integer processFlowId);
}
